package leetcode.code1005;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class S1005 implements IDebug {
	public abstract int largestSumAfterKNegations(int[] nums, int k);

	@Override
	public void debug1() {
		int r = this.largestSumAfterKNegations(HelpDebug.str2array3("[4,2,3]"), 1);
		int e = 5;
		HelpDebug.compare(e, r);
	}

	public void debug5() {
		int r = this.largestSumAfterKNegations(HelpDebug.str2array3("[5,6,9,-3,3]"), 2);
		int e = 20;
		HelpDebug.compare(e, r);
	}

	public void debug6() {
		int r = this.largestSumAfterKNegations(HelpDebug.str2array3("[8,-7,-3,-9,1,9,-6,-9,3]"), 8);
		int e = 53;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int r = this.largestSumAfterKNegations(HelpDebug.str2array3("[3,-1,0,2]"), 3);
		int e = 6;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int r = this.largestSumAfterKNegations(HelpDebug.str2array3("[2,-3,-1,5,-4]"), 2);
		int e = 13;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
